﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using OVS_ApplicationConfiguration;

namespace OVS_FrontOffice
{
    /// <summary>
    /// Logique d'interaction pour ApplicationConfigurationaddcamera.xaml
    /// </summary>
    public partial class ApplicationConfigurationaddcamera : Window
    {
        String Nom, Description, localisation,adresse;
        Boolean Utilisation = false;

        public ApplicationConfigurationaddcamera()
        {
            InitializeComponent();
            Valider.Resources["fontSizeTextBlock"] = (Double)11;
            Annuler.Resources["fontSizeTextBlock"] = (Double)11;
        }

        private void Annuler_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            Close();
        }

        private void Valider_Click(object sender, RoutedEventArgs e)
        {
            adresse = textBox_IP.Text;
            Nom = textBox_Nom_Camera.Text;
            Description = textBox_Description.Text;
            localisation = textBox_Localisation.Text;
            if (checkBox_Activ_Camera.IsChecked==true)
            {
                Utilisation = true;
            }
            this.DialogResult = true;

        }
    }
}
